<template>
  <div class="denglu1">
    <div class="dl-top">
      <!-- @click="$router.push({ path: '/about' })" -->
      <span @click="$router.go(-1)"
        ><img src="../assets/image/ic_back_dark_center.png" alt="" /></span
      ><span @click="$emit('changeed', ok)">免密登录</span>
    </div>

    <div class="dl-or-zc">
      <p>密码登录</p>
      <div class="zh">
        <input type="text" placeholder="用户名/手机号/邮箱" />
      </div>
      <div class="mm">
        <input type="text" placeholder="密码" />
      </div>
      <button>登录</button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    ok: Boolean,
  },
};
</script>

<style lang="less" scoped>
.denglu1 {
  position: relative;
  .dl-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    span {
      &:nth-of-type(1) {
        // margin-top: 2px;
        padding-left: 3px;
        img {
          padding-top: 4px;
          width: 40px;
          height: 40px;
        }
      }
      &:nth-of-type(2) {
        padding-right: 20px;
        padding-top: 10px;
      }
    }
  }

  .dl-or-zc {
    margin: 0 20px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
    p {
      width: 100%;
      font-size: 25px;
      flex: 1;
      margin-bottom: 30px;
    }
    .zh {
      width: 100%;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(173, 166, 166, 0.575);
      margin-bottom: 15px;
      input {
        width: 80%;
        height: 20px;
        border: 0px;
        flex: 1;
      }
    }
  }
  .mm {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(173, 166, 166, 0.575);

    margin-bottom: 15px;
    input {
      width: 70%;
      height: 20px;
      border: 0px;
    }
  }
  button {
    width: 100%;
    margin-top: 40px;
    border-radius: 20px;
    padding: 10px;
    font-size: 18px;
    background-color: #eeeff3;
    border: 0;
    color: #a8acbc;
  }
}
</style>